package com.ccp.dev.core.basic.base;


import com.ccp.dev.core.basic.web.query.QueryFilter;

import java.io.File;
import java.io.Serializable;
import java.util.List;

/**
 * service基类
 * @param <T> model类
 * @param <IBaseMapper> dao类
 */
public class BaseImpService<T,IBaseMapper>{

    protected IBaseMapper dao;

    public void add(T t) throws Exception {
    }

    public void update(T t) throws Exception {

    }

    public List<T> queryList(QueryFilter queryFilter) throws Exception {
        return null;
    }

    public T getById(String id) throws Exception {
        return null;
    }

    public void delById(String id) throws Exception {

    }

    public void delBatchByIds(String[] ids) throws Exception {

    }

    public void exportFile(List<T> t) throws Exception {

    }

    public void importFile(File file) throws Exception {

    }
}
